﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yule8xCommon.Applib;
using Yule8xCommon.Db;

namespace Yule8xModel
{
    /// <summary>
    /// 实体模型类通用类
    /// </summary>
    public class EntityModels
    {

        public static T Find<T>(int uid) where T : class, new()
        {
            return DbFactory.Init(AppInfo.conn_yule8x_agent).FindEntity<T>(string.Format("select top 1 * from t_user_agent_statistics where user_id={0}", uid));
        }
    }
}
